import request from '~/utils/resquest'

// 消息模版列表
export const templateListGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/sms/template/list',
    method: 'get',
    params
  })

// 添加消息模版
export const templateListPost = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/sms/template/add',
    method: 'post',
    data: params
  })

// 修改消息模版
export const templateUpdatePost = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/sms/template/update',
    method: 'post',
    data: params
  })

// 删除消息模版
export const templateRemovePost = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/sms/template/remove',
    method: 'post',
    params
  })
